<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<META http-equiv="Content-type" content="text/html;charset=UTF-8"/>
	
<META http-equiv="content-type" content="text/html;charset=iso-8859-9">
<META http-equiv="content-type" content="text/html;charset=windows-1254">
<META http-equiv="content-type" content="text/html;charset=x-mac-turkish">
<?php
    include_once("config.php");
	global $dil;
	if(!isset($_GET['lang']))
	{
		$dil = "tr";
	}
	else
	{
		$dil   = $_GET['lang'];
	}
?>
<title>Letta Teknoloji</title>

	<!--**CSS Includes -->
	<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="css/print.css" type="text/css" media="print">	
	<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/themes/default/default.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/dialog.css" media="screen" />
	<style type="text/css">
	body {
	background-image: url(imgs/background_main.jpg);
	background-repeat: repeat-x;
	}
	.signed
	{
		font-weight:bold;
	}
	#bayrakTR
	{
		position:absolute;
		left:85%;
		top:50px;
		z-index:17;
	} 
	#bayrakUSA
	{
		position:absolute;
		left:90%;
		top:50px;
		z-index:17;
	}
	.diller:hover
	{
		color:#FF6A00;
	}
	.haber-yazi
	{
		position:absolute;
		margin-top:15px;
		margin-right:10px;
	}	
	.alt-baslik
	{
		margin-bottom:-25px;
	}
	</style>

	<!--**Java Scripts -->
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">

    $(window).load(function() {
        $('#slider').nivoSlider({
			effect:'boxRainReverse',
			directionNav:false
			});
    });
    </script>
	 <script type="text/javascript">

	   function yonlendir()
	   {
	   }
	  
	 </script>
	<style>
		img{margin-right:10px;}
		.alt-baslik{}
	</style>
    <script src="js/cufon-yui.js" type="text/javascript"></script>
	<script src="js/myriad-pro.cufonfonts.js" type="text/javascript"></script>
	<script type="text/javascript">
		Cufon.replace('.myriad_pro_semibold_italic', { fontFamily: 'Myriad Pro Semibold Italic', hover: true }); 
		Cufon.replace('.myriad_pro_regular', { fontFamily: 'Myriad Pro Regular', hover: true }); 
		Cufon.replace('.myriad_pro_bold_italic', { fontFamily: 'Myriad Pro Bold Italic', hover: true }); 
		Cufon.replace('.myriad_pro_bold', { fontFamily: 'Myriad Pro Bold', hover: true }); 
	</script>    
   
</head>
<body onload="yonlendir();">
		<a href="index.php?lang=en" id="bayrakUSA" class="diller">English</a>
		<a href="index.php?lang=tr" id="bayrakTR" class="diller">Türkçe</a>
<div class="container">

	<!--HEADER START-->
	<div id="header" class="span-24 last" style="height:100px;">
	
		<div id="Letta Logo" class="span-5" style="margin-top:10px; margin-left:19px;">
		<img src="imgs/logo.jpg" width="159" height="80" alt="Letta Teknoloji" />
		</div>

		<div id="Letta Menu" class="span-17 left menu myriad_pro_regular">
			<ul>
			   <?php 
			        if($dil == "tr")
					{
						echo "<li><a href=\"index.php?sayfa=1&lang=tr\" >ANASAYFA</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=2&lang=tr\" >HAKKIMIZDA</a><span class=\"menu_line\">|</span></li>";
						$ustmenu = mysql_query("SELECT * FROM veri WHERE ustid=0 AND aktif=1 AND dil='tr'") or die(mysql_error());
						$menuoge = mysql_fetch_row($ustmenu);
						echo "<li><a href=\"index.php?sayfa=3&urun=$menuoge[0]&lang=tr\">";
						echo turkce("ÜRÜNLER VE HİZMETLER");
						echo "</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=4&lang=tr\">".turkce("İLETİŞİM")."</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=5&lang=tr\">".turkce("KARİYER")."</a></li>";	
					}
					if($dil == "en")
					{
					    echo "<li><a href=\"index.php?sayfa=1&lang=en\" >MAIN</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=2&lang=en\" >ABOUTUS</a><span class=\"menu_line\">|</span></li>";
						$ustmenu = mysql_query("SELECT * FROM veri WHERE ustid=0 AND aktif=1 AND dil='en'") or die(mysql_error());
						$menuoge = mysql_fetch_row($ustmenu);
						echo "<li><a href=\"index.php?sayfa=3&urun=$menuoge[0]&lang=en\">";
						echo turkce("PRODUCTS AND SOLUTIONS");
						echo "</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=4&lang=en\">".turkce("CONTACT")."</a><span class=\"menu_line\">|</span></li>";
						echo "<li><a href=\"index.php?sayfa=5&lang=en\">".turkce("CAREER")."</a></li>";
					}
				?>
				
				<li>&nbsp;</li>	
            </ul>
			
		</div>
	</div>

	<!--HEADER STOP-->
	<!--MAINPART START-->
	<div id="main-part" class="span-24 last">
	
	
	    <?php
		    $sayfa = @$_GET['sayfa'];
			
			if($sayfa == 1 || !isset($_GET['sayfa']))
			{
				echo "<style type=\"text/css\">
				{
					$(\"#cozumler\").css(\"visibility\":\"hidden\");
					$(\"#vertmenu\").css(\"visibility\":\"hidden\");
					$(\"#contentico\").css(\"visibility\":\"hidden\");
					
				}
				</style>";
				$komut = mysql_query("SELECT * FROM bolum WHERE indeks=1 AND aktif=0");
				$veri  = mysql_fetch_row($komut);
				echo $veri[1];
			}
		?>
		<!--VERT MENU-->
		<?php
		if($sayfa > 1)
		{
		    
			echo "<div id=\"vertmenu\" class=\"span-6\">";
			echo "<ul>";
			if($dil == "tr")
			{
				echo "<li><a href=\"index.php?sayfa=1&lang=$dil\">Anasayfa</a></li>
				<li><a href=\"index.php?sayfa=2&lang=$dil\">".turkce("Hakkımızda")."</a></li>";
				$menuQuery = mysql_query("SELECT * FROM veri WHERE ustid=0 AND dil='$dil'");
				$menu      = mysql_fetch_row($menuQuery);
				echo "<li><a href=\"index.php?sayfa=3&urun=$menu[0]&lang=$dil\">".turkce("Ürünler ve Hizmetler")."</a>";
				echo "<span id=\"urunMenu\">";	
				if($sayfa == 3)
				{
					katListele(0);
				}
				echo "</span></li>	
				<li id=\"ilet\"><a href=\"index.php?sayfa=4&lang=$dil\">".turkce("İletişim")."</a></li>
				<li><a href=\"index.php?sayfa=5&lang=$dil\">Kariyer</a></li>";
			}
			if($dil == "en")
			{
				echo "<li><a href=\"index.php?sayfa=1&lang=$dil\">Main Page</a></li>
				<li><a href=\"index.php?sayfa=2&lang=$dil\">About us</a></li>";
				$menuQuery = mysql_query("SELECT * FROM veri WHERE ustid=0 AND dil='en'");
				$menu      = mysql_fetch_row($menuQuery);
				echo "<li><a href=\"index.php?sayfa=3&urun=$menu[0]&lang=$dil\">Products and Solutions</a>";
				echo "<span id=\"urunMenu\">";	
				if($sayfa == 3)
				{
					katListele(0);
				}
				echo "</span></li>	
				<li id=\"ilet\"><a href=\"index.php?sayfa=4&lang=$dil\">".turkce("Contact")."</a></li>
				<li><a href=\"index.php?sayfa=5&lang=$dil\">Career</a></li>";
			}
			echo "</ul>
			</div>";	
		}
		function katListele($katid, $onek = 1)
		{
				$tmp = 0;
				if(!isset($_GET['lang']))
				{
					$dil = "tr";
				}
				else
				{
					$dil   = $_GET['lang'];
				}
				$sql = mysql_query("SELECT * FROM veri WHERE ustid='$katid' AND aktif=1 AND dil='$dil'");
				if(mysql_num_rows($sql) > 0 && $katid != 0 && ($onek == 1 || $onek == 2))
				{
					echo "<ul id=\"liste$onek\">";
					$tmp = 1;
				}
				while($sonuc = mysql_fetch_array($sql))
				{				
					if(!empty($sonuc))
					{
					    if($katid != 0)
						{
						    $sayfa = @$_GET['sayfa'];
							$urun  = @$_GET['urun'];
							$ustid = @$_GET['ustid'];
							if(($onek == 1 || $onek == 2) ||( $urun == $sonuc[0] || $urun == $sonuc[6] || $ustid == $sonuc[6]))
							{
								if(($onek == 1 || $onek == 2))
								{
									echo "<li id=\"$sonuc[0]\" class=\"listeler\"><a href=\"?sayfa=$sayfa&urun=$sonuc[0]&ustid=$sonuc[6]&lang=$dil\" >".$sonuc[1]."</a></li>";
								}
								else
								{
									if($urun == $sonuc[0])
									{
										echo "<li id=\"$sonuc[0]\" class=\"signed\" style=\"margin-left:10px;\"><span></span><a href=\"?sayfa=$sayfa&urun=$sonuc[0]&ustid=$sonuc[6]&lang=$dil\" >".$sonuc[1]."</a></li>";
									}
									else
									{
										echo "<li id=\"$sonuc[0]\" class=\"listeler\" style=\"margin-left:10px;\"><span></span><a href=\"?sayfa=$sayfa&urun=$sonuc[0]&ustid=$sonuc[6]&lang=$dil\" >".$sonuc[1]."</a></li>";
									}
								}
	                        }
							
						}
						katListele($sonuc['id'], ($onek+1));
					}
					
				}
				if($tmp == 1)
					echo "</ul>";	
		}
		?>
		<!--VERT MENU-->
		
		<!--CONTENTICO MADRID-->
		<?php
			if($sayfa == 1 || !isset($_GET['sayfa']))
			{
			    $sayac = 0;
				echo "<div class=\"span-24 last\" style=\"margin-top:-20px;\">";
				echo "<div class=\"dialog\">";
				echo "<div class=\"content\">";
				echo "<div class=\"t\"></div>";
				echo "<div id=\"middle-box\" style=\"margin-left:0px;\">";
			
				$komut = mysql_query("SELECT * FROM haber WHERE aktif=1 AND indeks < 3 AND dil='$dil' ORDER BY indeks ASC") or die(mysql_error());
				while($veri  = mysql_fetch_array($komut))
				{
				    if($sayac <3)
					{
						if($sayac < 2)
						{
							echo "<div id=\"boxes\" class=\"span-8 colborder\">";
						}
						else
						{
							echo "<div id=\"boxes\" class=\"span-8 last\">";
						}
							echo "<div class=\"box-header myriad_pro_regular\">".$veri[1]."</div>";
							echo "<div class=\"light1\">";
							echo "<img src=\"image/$veri[3]\" width=\"266\" height=\"100\" />";
							echo "</div>";
							echo "<div class=\"text2 anasayfa-kucuk\">";
							echo $veri[2];
							echo "<span class=\"devamini-oku right\"><a href=\"haber.php?haberno=$veri[0]&lang=$dil\">devamini oku</a></span>";
							echo "</div>";

						echo "</div>";
					}
					$sayac++;
				}
				echo "</div>";
				echo "<div style=\"height:270px;\"></div>
					</div>
					<div class=\"b\"></div>
					</div>
					</div>";
				
			}
			echo "<style type=\"text/css\">
			{
				$(\"#cozumler\").css(\"visibility\":\"visible\");
				$(\"#vert-menu\").css(\"visibility\":\"visible\");
			}
			</style>";
		?>
		
			<?php
				if($sayfa > 1 && !(isset($_GET['urun'])) && $sayfa !=3)
				{
					echo "<div class=\"span-19 last right\" id=\"contentico\">
					<div class=\"dialog\">
					<div class=\"content\">
					<div class=\"t\"></div>
					<div id=\"cozumler\">
					<div id=\"content-style\">";
					$komut = mysql_query("SELECT * FROM veri WHERE indeks='$sayfa' AND ustid=-1");
					$veri  = mysql_fetch_row($komut);
					echo "<div class=\"baslik\">".$veri[1]."</div>";
					if($sayfa != 4 && $sayfa != 5 )                                         //Sayfa �zelli�tirme
					{																		//
						echo "<img src=image/".$veri[3]." width=\"700\" height=\"206\"/>";	//
					}																		//
					echo $veri[5];
					echo "</div>";
					echo "</div>";
					echo "</div></div>";
				}
				if(isset($_GET['urun']) || $sayfa == 3)
				{
				    if(isset($_GET['urun']))
					{
						$urun = $_GET['urun'];
					}
					else
					{
						$urun = 0;
					}
					echo "<div class=\"span-19 last right\" id=\"contentico\">
					<div class=\"dialog\">
					<div class=\"content\">
					<div class=\"t\"></div>
					<div id=\"cozumler\">
					<div id=\"content-style\">";
					$komut = mysql_query("SELECT * FROM veri WHERE id='$urun' AND aktif=1 ");
					$veri  = mysql_fetch_row($komut);
					echo "<div class=\"baslik\">".$veri[1]."</div>";
					echo "<img src=\"image/".$veri[3]."\" style=\"float:left;\" width=\"700\" height=\"206\"/>";
					echo $veri[5];
					$urunler = mysql_query("SELECT * FROM veri WHERE ustid='$veri[0]' AND aktif=1 ORDER BY indeks ASC");
					while($urunRow = mysql_fetch_array($urunler))
					{
						echo "<div>";
						     echo "<div class=\"alt-baslik\"><a href=\"index.php?sayfa=3&urun=$urunRow[0]&ustid=$urunRow[6]\">".$urunRow[1]."</a></div>"; 
							 echo "<div><a href=\"index.php?sayfa=3&urun=$urunRow[0]&ustid=$urunRow[6]\"><img src=\"image/".$urunRow[4]."\" width=\"160\" height=\"120\" style=\"float:left;\" /></a></div>";
							 echo "<span class=\"haber-yazi\">".$urunRow[2]."</span>";
							
							 echo "<br/><br/><br/><br/>";
						echo "</div>";
						echo "<br/><br/><br/>";
					}
					echo "</div>";
					echo "<br/><br/><br/><br/<br/>";
					echo "</div></div></div></div>";
				}
            ?>			


		<!--CONTENTICO MADRID END-->
		
    <!--MAINPART**-->
	
    
	<!--**footer--> 
 
</div>

 	 <div id="footer" class="span-24 last myriad_pro_regular">
		<br />
		<br />
		<br />
		<?php
			echo turkce("Bu sitede kullanılan bütün meteryaller Letta Teknoloji'ye aittir<br />İzin alınmadan kullanılması yasaktır<br />letta.com.tr 2011");
		?>
	</div>
</div>
</body>
</html>
